Skip to main content

TextLineWithIcon

Common component to show an icon with a line of text

NameTypeDefault ValueRequiredDescription
iconPropsanyNoProps for icon you want to display in this line of text
textstringYesstring to display
variantstring | number | symbolNosets the variant of the text, if not set defaults to MobileBody
colorstring | number | symbolNosets the text to the specified color, if not specified defaults to primary
textAlign"left" | "right" | "center"Noalignment of the text
textTag{ labelType: LabelTagTypes; }Nosets the text to be a tag
a11yLabelstringNo
mtstring | numberNoset margin top of this component
mbstring | numberNoset margin bottom of this component